#include <algorithm>
#include <fstream>
#include <iterator>
#include <iostream>
#include <list>
#include <map>
#include <sstream>
#include <stack>
#include <iostream>

#include "simple_reader.hh"
#include "adventure-loop.hh"

using namespace std;

int main(int argc, char *argv[]) {
  Adventure adv;

  if(argc != 2) {
    cerr << "Please provide a game file-name.\n";
    return 1;
  } else {
    ifstream in(argv[1]);
    adv = read_from_file(in);
  }
  adventure_loop(adv);
  return 0;
}
